require 'watir'
include Watir
require 'test/unit'
class TC_blogsFrontEnd < Test::Unit::TestCase
  	def test_03_GeneralUserBlogFunctioning_Blogs
	#Start test 3
#	$ie.goto($UniVar + '/login.aspx?ReturnUrl=%2fcs%2fdefault.aspx')
  $ie.link(:text, 'Sign in').click
	$ie.text_field(:id, /username/ ).set('ryhoward')
	$ie.text_field(:id, /password/ ).set('navigator')
	$ie.link(:id, /ctl00_bcr_Login1___loginButton/).click
		$ie.link(:url, 'http://localhost/cs/blogs/default.aspx').click
		$ie.link(:text, 'watir blog').click
		$ie.text_field(:id, /ctl00___ctl00___ctl00_ctl00_bcr_ctl00___form___tbUrl/).set('www.nba.com')
		$ie.text_field(:id, /ctl00___ctl00___ctl00_ctl00_bcr_ctl00___form___tbComment/).set('testing Watir commenting')
		$ie.link(:text, 'Submit').click
	if $ie.contains_text('Thanks for sharing your feedback!')
		puts "test_03_GeneralUserBlogFunctioning_Blogs Passed"
	else
		puts "test_03_GeneralUserBlogFunctioning_Blogs Failed"
	end
	$ie.goto($UniVar)
	end
end